package com.sky.context;

public class EmployeeContext {
    private static final ThreadLocal<Long> currentEmp = new ThreadLocal<>();

    public static void setCurrentEmp(Long userId){
        currentEmp.set(userId);
    }

    public static Long getCurrentEmp(){
        return currentEmp.get();
    }

    public static void remove(){
        currentEmp.remove();
    }
}
